import request from '@/utils/request'

// 查询入伙登记列表
export function listJoinRegister(query) {
  return request({
    url: '/waitress/joinRegister/list',
    method: 'get',
    params: query
  })
}




export function selectJoinByRoomId(query) {
  return request({
    url: '/waitress/joinRegister/selectJoinByRoomId',
    method: 'get',
    params: query
  })
}


// 查询入伙登记详细
export function getJoinRegister(id) {
  return request({
    url: '/waitress/joinRegister/' + id,
    method: 'get'
  })
}

// 新增入伙登记
export function addJoinRegister(data) {
  return request({
    url: '/waitress/joinRegister',
    method: 'post',
    data: data
  })
}

// 修改入伙登记
export function updateJoinRegister(data) {
  return request({
    url: '/waitress/joinRegister',
    method: 'put',
    data: data
  })
}

// 删除入伙登记
export function delJoinRegister(id) {
  return request({
    url: '/waitress/joinRegister/' + id,
    method: 'delete'
  })
}

// 导出入伙登记
export function exportJoinRegister(query) {
  return request({
    url: '/waitress/joinRegister/export',
    method: 'get',
    params: query
  })
}

//入伙登记审核确认
export function auditing(id) {
  return request({
    url: '/waitress/joinRegister/auditing/' + id,
    method: 'get'
  })
}

// 迁出
export function emigrationAud(data) {
  return request({
    url: '/waitress/joinRegister/emigrationAud',
    method: 'post',
    data: data
  })
}
